package com.quanshu.change.person.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.quanshu.change.person.entity.GoldListBean;
import com.quanshu.exchange.R;

import java.util.List;

/**
 * 作者  李哲
 * 创建时间 2018/9/1
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
public class GoldCharge1Adapter extends BaseQuickAdapter<GoldListBean.NumberEntity, BaseViewHolder> {
    public GoldCharge1Adapter(@Nullable List<GoldListBean.NumberEntity> data) {
        super(R.layout.item_gold_charge1, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoldListBean.NumberEntity item) {
        int a = Integer.parseInt(item.getNumber());
        int b = Integer.parseInt(item.getAdd_number());
        helper.setText(R.id.item_txt, "购买"+a+"金豆     获得"+(a+b)+"金豆");
    }
}
